 <%= javascript_include_tag :fckeditor %>
 
 <table cellspacing="0" cellpadding="0" border="0" class="addPostPanel">
    <tbody><tr>
      <td valign="top"> </td>
      <td valign="top"><strong>настроение записи.<br/>выбрать нужную картинку:</strong></td>
      <td valign="top"><strong>место публикации.<br/>выбрать журнал/комуну:</strong></td>
    </tr>
    <tr>
      <td valign="top" rowspan="2"><%= avatar(current_user) %></td>
      <td valign="top"><%= form.collection_select :avatar_id, @user.avatars, :id, :filename, {:include_blank=>"картинка по умолчанию"} %><br/><strong>дата:</strong> <%= Time.now.strftime("%d %b %Y (%H.%M)") %></td>
      <td valign="top"><%= form.collection_select :community_id, @user.communities, :id, :title, {:include_blank=>"Журнал"} %></td>
    </tr>
    <tr>
      <td valign="bottom" colspan="2"><strong>тема:</strong> <%= form.text_field :title %></td>
    </tr>
  </tbody></table>
  <div class="redactor">
  	<%= fckeditor_textarea(:post, :content, :toolbarSet => 'Simple', :width => '100%', :height => '500px') %>
  </div>
  <table cellspacing="0" cellpadding="0" border="0" class="subPanel">
  <tbody><tr>
    <td><strong>метки записи:</strong></td>
    <td colspan="3"><%= form.text_field :tag_list, :style=>"width: 525px;" %></td>
    </tr>
  <tr>
    <td><strong>настроение:</strong></td>
    <td><%= form.text_field :mood %></td>
    <td><strong>коментарии:</strong></td>
    <td><%= form.collection_select :comment_access_id, CommentAccess.find_all, :id, :name, {:include_blank=>false} %></td>
    </tr>
  <tr>
    <td><strong>музыка:</strong></td>
    <td><%= form.text_field :music %></td>
    <td><strong>доступ к записи:</strong></td>
    <td><%= form.collection_select :post_access_id, PostAccess.find_all, :id, :name, {:include_blank=>false} %></td>
    </tr>
  <tr>
    <td> </td>
    <td> </td>
    <td colspan="2"><div class="submit"><input type="submit" value="опубликовать запись"/></div></td>
    </tr>
</tbody></table>
